package seaildamil.ch18.th;

import java.lang.Thread.State;

public class DigitThreadEx extends Thread {

	@Override
	public void run(){
		for(int i=0;i<10;i++){
			System.out.print(i+" ");
			try {
				sleep(1000);
			} catch (InterruptedException e) {
				
				e.printStackTrace();
			}
		}
	}

}
